package com.工厂模式.simple;

import lombok.ToString;

@ToString
public class MiniCar extends AbstractCar{

    public MiniCar(){
        engine="8杠对置发动机";
        name="小型汽车";
    }

    @Override
    public void run() {
        System.out.println(name+">>>>>"+engine+"-->发动了，声音嘟嘟嘟");
    }
}
